home *** CD-ROM | disk | FTP | other *** search
- head 1.15;
- branch ;
- access ;
- symbols ;
- locks ; strict;
- comment @ * @;
-
-
- 1.15
- date 91.12.16.14.02.47; author rab; state Exp;
- branches ;
- next 1.14;
-
- 1.14
- date 91.11.05.17.16.01; author rab; state Exp;
- branches ;
- next 1.13;
-
- 1.13
- date 89.07.14.09.15.24; author rab; state Exp;
- branches ;
- next 1.12;
-
- 1.12
- date 88.07.22.11.28.07; author ouster; state Exp;
- branches ;
- next 1.11;
-
- 1.11
- date 88.07.14.18.19.56; author ouster; state Exp;
- branches ;
- next 1.10;
-
- 1.10
- date 88.07.14.09.47.17; author ouster; state Exp;
- branches ;
- next 1.9;
-
- 1.9
- date 88.07.14.08.38.02; author ouster; state Exp;
- branches ;
- next 1.8;
-
- 1.8
- date 88.07.02.17.38.22; author ouster; state Exp;
- branches ;
- next 1.7;
-
- 1.7
- date 88.07.02.17.35.27; author ouster; state Exp;
- branches ;
- next 1.6;
-
- 1.6
- date 88.07.01.15.44.16; author ouster; state Exp;
- branches ;
- next 1.5;
-
- 1.5
- date 88.06.29.14.48.05; author ouster; state Exp;
- branches ;
- next 1.4;
-
- 1.4
- date 88.06.27.16.19.52; author ouster; state Exp;
- branches ;
- next 1.3;
-
- 1.3
- date 88.06.27.16.02.30; author ouster; state Exp;
- branches ;
- next 1.2;
-
- 1.2
- date 88.06.27.15.25.51; author ouster; state Exp;
- branches ;
- next 1.1;
-
- 1.1
- date 88.06.26.15.56.14; author ouster; state Exp;
- branches ;
- next ;
-
-
- desc
- @@
-
-
- 1.15
- log
- @Added definition of HZ.
- @
- text
- @/*
- * param.h --
- *
- * This file is modelled after the UNIX include file <sys/param.h>,
- * but it only contains information that is actually used by user
- * processes running under Sprite (the UNIX file contains mostly
- * stuff for the kernel's use). This file started off empty, and
- * will gradually accumulate definitions as the needs of user
- * processes become clearer.
- *
- * Copyright 1988 Regents of the University of California
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies. The University of California
- * makes no representations about the suitability of this
- * software for any purpose. It is provided "as is" without
- * express or implied warranty.
- *
- * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.14 91/11/05 17:16:01 rab Exp Locker: rab $ SPRITE (Berkeley)
- */
-
- #ifndef _SYS_PARAM_H
- #define _SYS_PARAM_H
-
- #include <sys/types.h>
- #include <signal.h>
- #include <machparam.h>
-
- #define HZ 60
-
- /*
- * MAXPATHLEN defines the longest permissable path length
- * after expanding symbolic links.
- */
- #define MAXPATHLEN 1024
-
- /*
- * MAXBSIZE defines the largest block size stored in the file system.
- */
- #define MAXBSIZE 4096
-
- /*
- * The macro below converts from the "st_blocks" field of a "struct stat"
- * to the number of bytes allocated to a file. The "st_blocks" field
- * is currently measured in (archaic) 512-byte units.
- */
- #define dbtob(blocks) ((unsigned) (blocks) << 9)
-
- /*
- * MAXHOSTNAMELEN defines the maximum length of a host name in the
- * network.
- */
- #define MAXHOSTNAMELEN 64
-
- /*
- * Maximum number of characters in the argument list for exec. Is this
- * really a limit in Sprite, or is it here just for backward compatibility?
- */
- #define NCARGS 10240
-
- /*
- * Maximum number of open files per process. This is not really a limit
- * for Sprite; it's merely there for old UNIX programs that expect it.
- */
- #define NOFILE 64
-
- /*
- * The maximum number of groups that a process can be in at once
- * (the most stuff ever returned by getgroups). Note: this needs
- * to be coordinated with FS_NUM_GROUPS, which it isn't right now.
- */
- #define NGROUPS 16
-
- /*
- * Macros for fast min/max.
- */
- #define MIN(a,b) (((a)<(b))?(a):(b))
- #define MAX(a,b) (((a)>(b))?(a):(b))
-
- /*
- * Round up an object of size x to one that's an integral multiple
- * of size y.
- */
-
- #define roundup(x, y) ((((x) + ((y) -1))/(y))*(y))
-
- /*
- * Miscellanous.
- */
- #ifndef NULL
- #define NULL 0
- #endif /* NULL */
-
- /*
- * Scale factor for scaled integers used to count
- * %cpu time and load averages.
- */
- #define FSHIFT 8 /* bits to right of fixed binary point */
- #define FSCALE (1<<FSHIFT)
-
- #endif /* _SYS_PARAM_H */
- @
-
-
- 1.14
- log
- @Added definition of FSCALE. X11R5 needs it.
- @
- text
- @d20 1
- a20 1
- * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.13 89/07/14 09:15:24 rab Exp Locker: rab $ SPRITE (Berkeley)
- d29 2
- @
-
-
- 1.13
- log
- @*** empty log message ***
- @
- text
- @d20 1
- a20 1
- * $Header: /sprite/src/lib/include/sys/RCS/param.h,v 1.12 88/07/22 11:28:07 ouster Exp Locker: rab $ SPRITE (Berkeley)
- d23 2
- a24 2
- #ifndef _PARAM
- #define _PARAM
- d93 8
- a100 1
- #endif /* _PARAM */
- @
-
-
- 1.12
- log
- @Added roundup macro.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.11 88/07/14 18:19:56 ouster Exp $ SPRITE (Berkeley)
- d91 1
- a91 1
- #endif NULL
- d93 1
- a93 1
- #endif _PARAM
- @
-
-
- 1.11
- log
- @Added NGROUPS.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.10 88/07/14 09:47:17 ouster Exp $ SPRITE (Berkeley)
- d78 7
- @
-
-
- 1.10
- log
- @New defines needed by csh.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.9 88/07/14 08:38:02 ouster Exp $ SPRITE (Berkeley)
- d65 7
- @
-
-
- 1.9
- log
- @Define NULL if it isn't already defined.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.8 88/07/02 17:38:22 ouster Exp $ SPRITE (Berkeley)
- a51 1
-
- d55 12
- a68 1
-
- a74 1
-
- @
-
-
- 1.8
- log
- @Typo in last change.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.7 88/07/02 17:35:27 ouster Exp $ SPRITE (Berkeley)
- d58 1
- d61 8
- @
-
-
- 1.7
- log
- @Added dbtob macro.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.6 88/07/01 15:44:16 ouster Exp $ SPRITE (Berkeley)
- d46 1
- a46 2
- #define dbtob(blocks)
- ((unsigned) (blocks) << 9)
- @
-
-
- 1.6
- log
- @Add MAXHOSTNAMELEN.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.5 88/06/29 14:48:05 ouster Exp $ SPRITE (Berkeley)
- d40 8
- @
-
-
- 1.5
- log
- @Add ifdefs to prevent files from being included multiple times.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.4 88/06/27 16:19:52 ouster Exp $ SPRITE (Berkeley)
- d40 7
- @
-
-
- 1.4
- log
- @Added MIN, MAX definitions.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.3 88/06/27 16:02:30 ouster Exp $ SPRITE (Berkeley)
- @
-
-
- 1.3
- log
- @Added MAXBSIZE.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.2 88/06/27 15:25:51 ouster Exp $ SPRITE (Berkeley)
- d40 6
- @
-
-
- 1.2
- log
- @Added MAXPATHLEN definition.
- @
- text
- @d20 1
- a20 1
- * $Header: param.h,v 1.1 88/06/26 15:56:14 ouster Exp $ SPRITE (Berkeley)
- d35 5
- @
-
-
- 1.1
- log
- @Initial revision
- @
- text
- @d20 1
- a20 1
- * $Header: proto.h,v 1.2 88/03/11 08:39:40 ouster Exp $ SPRITE (Berkeley)
- d29 6
- @
-